namespace go admin_administrator
include "error_code.thrift"

struct GetAdministratorInfoRequest {
}

struct Administrator {
    1: i64 ID (api.body='id')
    2: string Name (api.body='name')
    3: string Avatar (api.body='avatar')
    4: list<string> Roles (api.body='roles')
    5: list<string> Permissions(api.body='permissions')
}

struct GetAdministratorInfoResponse {
    1: error_code.ErrorCode Code (api.body='code')
    2: Administrator Data (api.body='data')
}
